%%%-------------------------------------------------------------------
%% @doc crontab public API
%% @end
%%%-------------------------------------------------------------------

-module(crontab).

-export([start/0, stop/0]).
-export([reload/0, show/0]).

%%%-------------------------------------------------------------------
start() ->
    {ok, _} = application:ensure_all_started(crontab).

stop() ->
    application:stop(crontab).

reload() ->
    {ok, Files} = application:get_env(crontab, files),
    crontab_trigger:reload(Files).

show() ->
    crontab_trigger:show().

%% internal functions


